<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="radio-inline">
                <input type="radio" name="row[integral_status]" value="1" <?php if ($row['integral_status'] == 1) echo 'checked'; ?> > {:__('正常')}
            </label>
            <label class="radio-inline">
                <input type="radio" name="row[integral_status]" value="0" <?php if ($row['integral_status'] == 0) echo 'checked'; ?>> {:__('隐藏')}
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>{:__('最大兑换比例')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-maximum_proportion"
                   data-rule="required"
                   class="form-control"
                   name="row[maximum_proportion]"
                   type="text"
                   value="{$row.maximum_proportion|htmlentities}"
                   placeholder="请输入数字"
                   pattern="^\d+(\.\d{1,2})?$"
                   oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1').replace(/^(\d+\.\d{0,2}).*/,'$1')"
                   title="请填写有效的数字，小数点后最多两位">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否支持金额补充积分 ')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="radio-inline">
                <input type="radio" name="row[is_repair]" value="0" <?php if ($row['is_repair'] == 0) echo 'checked'; ?> > {:__('否')}
            </label>
            <label class="radio-inline">
                <input type="radio" name="row[is_repair]" value="1" <?php if ($row['is_repair'] == 1) echo 'checked'; ?> > {:__('是')}
            </label>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {


    });

</script>
